import Vue from 'vue'
import App from './App'
import vueResource from 'vue-resource'

Vue.config.productionTip = false
Vue.use(vueResource) //应用vueResource插件后，vm和vc身上都多了一个$http

const vm = new Vue({
	el:'#root',
	render:h => h(App),
	beforeCreate() {
		//安装全局事件总线
		Vue.prototype.$bus = this
	},	
})

console.log(vm)